package com.stylefeng.guns.modular.pay.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.beans.Transient;
import java.io.Serializable;

/**
 * <p>
 * 通知记录日志表
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-24
 */
@TableName("pay_notify_record_log")
public class NotifyRecordLog extends Model<NotifyRecordLog> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * version
     */
    private Integer version;
    /**
     * 商户编号
     */
    @TableField("merchant_no")
    private String merchantNo;
    /**
     * 商户订单号
     */
    @TableField("out_order_no")
    private String outOrderNo;
    /**
     * 通知记录ID
     */
    @TableField("plat_trade_no")
    private String platTradeNo;
    /**
     * 请求信息
     */
    private String request;
    /**
     * 返回信息
     */
    private String response;
    /**
     * HTTP状态
     */
    @TableField("http_status")
    private Integer httpStatus;
    /**
     * 通知类型（0-自动 1-手动）
     */
    @TableField("notify_type")
    private Integer notifyType;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getMerchantNo() {
        return merchantNo;
    }

    public void setMerchantNo(String merchantNo) {
        this.merchantNo = merchantNo;
    }

    public String getOutOrderNo() {
        return outOrderNo;
    }

    public void setOutOrderNo(String outOrderNo) {
        this.outOrderNo = outOrderNo;
    }

    public String getPlatTradeNo() {
        return platTradeNo;
    }

    public void setPlatTradeNo(String platTradeNo) {
        this.platTradeNo = platTradeNo;
    }

    public String getRequest() {
        return request;
    }

    public void setRequest(String request) {
        this.request = request;
    }

    public String getResponse() {
        return response;
    }

    public void setResponse(String response) {
        this.response = response;
    }

    public Integer getHttpStatus() {
        return httpStatus;
    }

    public void setHttpStatus(Integer httpStatus) {
        this.httpStatus = httpStatus;
    }

    public Integer getNotifyType() {
        return notifyType;
    }

    public void setNotifyType(Integer notifyType) {
        this.notifyType = notifyType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
    //业务查询字段
    private String beginTime;
 
    private String endTime;
   
    @Transient
    public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}
	@Transient
	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

    @Override
    public String toString() {
        return "NotifyRecordLog{" +
        "id=" + id +
        ", version=" + version +
        ", merchantNo=" + merchantNo +
        ", outOrderNo=" + outOrderNo +
        ", platTradeNo=" + platTradeNo +
        ", request=" + request +
        ", response=" + response +
        ", httpStatus=" + httpStatus +
        ", notifyType=" + notifyType +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
